<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>oauth2 demo</title>
</head>
<body>
<h1>Login Success</h1>
<form action="/login" method="post">

    <h2>Welcome <span th:text="${user}">管理员</span></h2>
    <p><img th:src="${avatar_url}" alt=""></p>
    <a th:href="@{/login}">登录</a>
    <a th:href="@{/logout}">退出登录</a>
</form>
</body>
</html>